import axios from '@/api/fetch';
import SERVER from '@/api/server';
// 服务顾问 - 下拉框
export const getUserListSelect = params => axios.get(`/api/sysManage/basedata/users/getUserListByRole?role=10071011`, { params });

// 查询所有员工
export const getAllUser = params => axios.get(`${SERVER.DMSCLOUD_BASEDATA}/basedata/users/getDealerUser`);

// 进厂车辆日报
export const getVehicleDailyReport = params => axios.get(`${SERVER.DMSCLOUD_REPORT}/vehiclereport/queryvehicledailyreport`, { params });

// 进厂车辆月报
export const getVehicleMonthReport = params => axios.get(`${SERVER.DMSCLOUD_REPORT}/vehiclereport/queryVehicleMonthReport`, { params });

// 服务顾问车辆查询--信息汇总
export const queryServiceVehicleCollect = params => axios.get(`${SERVER.DMSCLOUD_REPORT}/vehiclereport/queryServiceVehicleCollect`, { params });

// 服务顾问车辆查询--明细信息
export const queryServiceVehicleDetail = params => axios.get(`${SERVER.DMSCLOUD_REPORT}/vehiclereport/queryServiceVehicleDetail`, { params });

// 车主车辆资料查询
export const queryOwnerVehicle = params => axios.get(`${SERVER.DMSCLOUD_REPORT}/repairReport/queryOwnerVehicle`, { params });

// 查询车辆配置
export const getApPackage = params => axios.get(`${SERVER.DMSCLOUD_REPORT}/basicCommonData/package`);

// 查询全部车系
export const getVehicleSeries = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/baseData/basicData/series`, { params });

// 获取全部车型
export const getModel = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/baseData/basicData/model`, { params });

// 获取优惠模式
export const getqueryDiscountModeList = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/basedata/discountmodes/queryDiscountMode`, { params });

// 车辆统计报表
export const queryVehicleStatisticsReport = params => axios.get(`${SERVER.DMSCLOUD_REPORT}/repairReport/queryVehicleStatisticsReport`, { params });
